require(['./config'],()=>{
	require(['template','header','footer'],(template)=>{
		class Index{
			constructor(){
				this.getYh()
			}
			getYh(){
				$.get('http://rap2api.taobao.org/app/mock/268649/api/index/list',resp=>{
					if(resp.code===1){
						const{list}=resp.body
						$('#yh').html(template('yhTemplate',{list}))
					}
				})
			}
		}
		new Index()
	})
})